package com.example.authorizationserver.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@TableName("sys_user")
@Data
public class User implements Serializable {

    @TableId
    private Long id;

    private String userName;

    private String nickName;

    private String password;

    /**
     * 0正常，1停用
     */
    private Integer status;

    private String email;

    private String phoneNumber;

    /**
     * 0男，1女，2未知
     */
    private Integer sex;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 0管理员，1普通用户
     */
    private Integer userType;

    private Long createBy;

    private Date createTime;

    private Long updateBy;

    private Date updateTime;

    /**
     * 0未删除，1已删除
     */
    private Integer delFlag;

}
